package com.pro.framework.api.enums;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 排序方向枚举
 */
@Getter
@AllArgsConstructor
@Schema(description = "排序方向")
public enum EnumSortDirection implements IEnumStr {

    ASC("ASC", "正序排列"),
    DESC("DESC", "倒序排列");

    @Schema(description = "排序方向编码", example = "asc")
    private final String code;
    @Schema(description = "排序方向描述", example = "正序排列")
    private final String label;
}
